/*
 * @Title Internationalization.java
 * @Description
 * @Copyright Copyright(c) 2018
 * @Company com.lizhen
 * @author lizhen
 * @version 0.0.1
 */
package com.lizhen.core.function.locale;

import java.util.Locale;

/**
 * @author lizhen
 */
public class LocaleDemo {

    /**
     * @author lizhen
     */
    public LocaleDemo() {
    }

    /**
     * @author lizhen
     */
    public static void main(String[] args) {
        Locale locale = Locale.getDefault();

        System.out.println("Default Locale Properties:");
        System.out.println(locale.getDisplayCountry());
        System.out.println(locale.getDisplayLanguage());
        System.out.println(locale.getDisplayName());
        System.out.println(locale.getISO3Country());
        System.out.println(locale.getISO3Language());
        System.out.println(locale.getLanguage());
        System.out.println(locale.getCountry());

        Locale frenchLocale = new Locale("fr", "fr");

        System.out.println("fr Locale Properties:");
        System.out.println(frenchLocale.getDisplayCountry());
        System.out.println(frenchLocale.getDisplayLanguage());
        System.out.println(frenchLocale.getDisplayName());
        System.out.println(frenchLocale.getISO3Country());
        System.out.println(frenchLocale.getISO3Language());
        System.out.println(frenchLocale.getLanguage());
        System.out.println(frenchLocale.getCountry());
    }

}
